package leetcode.hash;

import leetcode.hash.common.HashUtils;

class Solution290 {
    public boolean wordPattern(String pattern, String s) {
        return HashUtils.wordPattern(pattern, s);
    }
}

public class leetcode290 {
    public static void main(String[] args) {
        Solution290 solution290 = new Solution290();
        System.out.println(solution290.wordPattern("abba", "dog cat cat dog")); // true
        System.out.println(solution290.wordPattern("abba", "dog dog dog dog")); // false
    }
}
